<mat-tab-group [(selectedIndex)]="pageIdx">
<!-- (selectedIndexChange)="changeTab($event)" -->
  <mat-tab label="主页"><app-main></app-main> </mat-tab>
  <mat-tab label="分析"><app-analyze></app-analyze> </mat-tab>
</mat-tab-group>

<!-- <router-outlet></router-outlet> -->
